package timer;

import java.util.Timer;
import java.util.TimerTask;

public class Test {

	public static void main(String[] args) {
		Timer timer = new Timer();
		TimerTask task = new TimerTask() {
			public void run() {
				System.out.println(Thread.currentThread().getName()+"1:"+System.currentTimeMillis());

			}
		};
		 

		timer.schedule(task, 1000, 3000);
		System.out.println(Thread.currentThread().getName()+"2:"+System.currentTimeMillis());
	}

}
